<%
String fromDate = request.getParameter("fdate");
String toDate = request.getParameter("tdate");

if(fromDate == null || toDate == null || fromDate.equals("") || toDate.equals("")) {
    fromDate = "";
    toDate = "";
}
%>

<table>
<form action="browse">
    <tr>
        <td align="left">
            <font size="1" color="#000000">From</font>
        </td>
        <td align="left">
            <font size="1" color="#000000">To</font>
        </td>
        <td></td>
    </tr>
    <tr>      
        <td style="vertical-align: center;">
            <input type="text" maxlength="10" name="fdate" id="fdate" size="10" value="<%= fromDate %>" style="background-color: white; color: black;" onclick="displayDatePicker('fdate');" />&nbsp;<a href="#" onclick="displayDatePicker('fdate');"><img src="./image/calendar_icon.gif" border="0" /></a>
        </td>
        <td style="vertical-align: center;">
            &nbsp;<input type="text" maxlength="10" name="tdate" id="tdate" size="10" value="<%= toDate %>" onclick="displayDatePicker('tdate');" style="background-color: white; color: black;" />&nbsp;<a href="#" onclick="displayDatePicker('tdate');"><img src="./image/calendar_icon.gif" border="0" /></a>           
        </td>
        <td>
            <input type="hidden" name="o" id="o" value="desc" />
            <input type="hidden" name="q" id="q" value="null" />
            &nbsp;&nbsp;<input type="submit" value=" Browse " id="bBrowse" />
        </td>
    </tr>
</form>
</table>
